package hoowin.app.cadc.action;

import hoowin.app.cadc.model.CadcUser;
import hoowin.app.cadc.service.CadcUserService;
import hoowin.basic.model.User;

import com.opensymphony.xwork2.ActionSupport;

@SuppressWarnings("serial")
public class RefreshUserAction extends ActionSupport {
	private CadcUser cadcUser;
	private CadcUserService cadcUserService;
	private User user;
	
	public String execute(){
		CadcUser cadc = cadcUserService.getCadcUserByUser(user);
		setCadcUser(cadc);
		return SUCCESS;
	}
	public void setCadcUser(CadcUser cadcUser) {
		this.cadcUser = cadcUser;
	}
	public CadcUser getCadcUser() {
		return cadcUser;
	}
	public void setUser(User user) {
		this.user = user;
	}
	public User getUser() {
		return user;
	}
	public void setCadcUserService(CadcUserService cadcUserService) {
		this.cadcUserService = cadcUserService;
	}
}
